/* Author: Nahuel F. Lema, Maxi Yañez

 */

var organicosController = {

    fitvidsComponent: {

        get: function(){
            var componentsPath = scriptsController.defs.baseUrl + scriptsController.defs.componentsPath + 'jquery.fitvids/',
            self = this;

            $.getScript(componentsPath + 'jquery.fitvids.js', function(){
                self.bind();
            });
        },

        bind: function(){
            $(js.get.item('.video')[0]).fitVids();
        },

        init: function(){
            if (!!js.get.item('.video')[0]) this.get();
        }
    },

    init: function(){
        this.fitvidsComponent.init();
    }
}

organicosController.init();